package info.xiaolong.exampleservice.controller;


import info.xiaolong.exampleservice.service.IUserMsgService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 晓龙oba
 * @since 2021-12-03
 */
@Controller
@RequestMapping("/userMsgEntity")
@Api(tags = "用户信息(mybatis演示)")
public class UserMsgController {
    @Autowired
    private IUserMsgService userMsgService ;

    @ApiOperation(value = "查询列表")
    @PostMapping("/list")
    public ResponseEntity list() {
        return ResponseEntity.ok(userMsgService.list());
    }
}

